package com.flyme.module.base.provider.service.impl;
import com.flyme.core.base.supper.service.impl.BaseServiceImpl;
import com.flyme.module.base.client.entity.SysUserTrain;
import com.flyme.module.base.provider.mapper.SysUserTrainMapper;
import com.flyme.module.base.provider.service.SysUserTrainService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysUserTrainServiceImpl extends BaseServiceImpl<SysUserTrainMapper, SysUserTrain> implements SysUserTrainService {

    @Override
    public List<SysUserTrain> selectByUserId(Long userId) {
        return list(q().eq("userId", userId).orderByDesc("createTime"));
    }
}
